package com.example.androidstudy.ch07;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.view.View;

public class MyView extends View {

		public MyView (Context context){
			super(context);
		}
		@Override
		protected void onDraw(Canvas canvas) {
			/*canvas.drawColor(Color.LTGRAY);//배경색 밝은 회색
			Paint paint= new Paint();
			paint.setColor(Color.BLUE); //그리는 도구 파랑색
			
			canvas.drawCircle(100, 100, 80, paint);*/
			canvas.drawColor(Color.LTGRAY);
			Paint Pnt=new Paint();
			Pnt.setAntiAlias(true);
			Pnt.setStrokeWidth(10);
			Pnt.setStyle(Paint.Style.STROKE);
			Pnt.setStrokeJoin(Paint.Join.BEVEL);
			canvas.drawRect(10, 10, 300, 100, Pnt);

			
		}
		
	}
